<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
    <script type="text/javascript" src="js/jquery.js"></script>
    <script type="text/javascript" src="js/jquery.imgareaselect.min.js"></script>
</head>
<body>
<script type="text/javascript">
$(document).ready(function () {
  $('#4by3').click(function () {
    $('#duck').imgAreaSelect({ aspectRatio: '4:3' });
  });
  $('#green').click(function () {
    $('#duck').imgAreaSelect({ selectionColor: 'green' });
  });
  $('#blue').click(function () {
    $('#duck').imgAreaSelect({ selectionColor: 'blue' });
  });
});

$(window).load(function () {
  $('#duck').imgAreaSelect({ aspectRatio: '16:9', x1: 120, y1: 90, x2: 280, y2: 210 });
});

</script>

<img id="duck" src="test.php">
<button id="4by3">4:3</button>

</body>
</html>